Auto merge of #4384 - ivanbakel:unused_mut, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 9 Aug 2017 17:42:20 +0000 (17:42 +0000)
committerbors <bors@rust-lang.org>
Wed, 9 Aug 2017 17:42:20 +0000 (17:42 +0000)
commit7704f7b1fd52607104cc7fdc435d636c9de1fe90
tree54e87a04ffdbcdf0a35c66deba473145ce47693f
parentcae394308959f28a789ad6c7b3bb4164191c177c
parent1486f42c950b89ef39076f0a6274f324ba3cb290
Auto merge of #4384 - ivanbakel:unused_mut, r=alexcrichton

Fixed some variables being unnecessarily mutable

### Changes

Some variables are marked `mut` when they don't need to be. This PR changes those variables to no longer be `mut`.

### Context

PR on https://github.com/rust-lang/rust/pull/43582

tl:dr; There's a bug with the mutability checker that sometimes marks mutable ref variables as being used when they're not.